/**
 *Copyright (c) 2024 watereyes
 * workflow is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.workflow.common.bean;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 职员信息
 */
public class StaffBean extends BaseBean {
    // 部门
    @NotNull(message = "部门不能为空")
    private String departmentid;
    private String departmentCode;
    // 部门名称
    private String departmentname;
    // 职员名
    @NotNull(message = "姓名不能为空")
    @Size(max = 50, message = "姓名最多能输入50个字符")
    private String name;
    // 职员编码
    @NotNull(message = "工号不能为空")
    @Size(max = 50, message = "工号最多能输入50个字符")
    private String code;
    // 职位
    @Size(max = 50, message = "职位最多能输入50个字符")
    private String position;
    // 电话
    @Size(max = 50, message = "电话最多能输入50个字符")
    private String phone;
    // 手机
    @Size(max = 50, message = "手机最多能输入50个字符")
    private String mobile;
    // 邮箱
    @Size(max = 50, message = "邮箱最多能输入50个字符")
    private String email;
    // 性别
    private Integer sex;
    // 证件号码
    @Size(max = 50, message = "证件号码最多能输入50个字符")
    private String idcard;
    // 状态
    private Integer status;
    // 帐号
    @NotNull(message = "帐号不能为空")
    @Size(max = 50, message = "帐号最多能输入50个字符")
    private String account;
    // 权重
    private Integer weighting;
    // 头像链接地址
    @Size(max = 50, message = "头像链接地址最多能输入50个字符")
    private String photourl;
    // 云之家的ID
    @Size(max = 50, message = "云之家的ID最多能输入50个字符")
    private String openid;
    // 云之家的personid
    @Size(max = 50, message = "云之家的personid最多能输入50个字符")
    private String userid;
    // 是否是管理员  0:否，1:是
    private String supperManager;

    public String getDepartmentid() {
        return departmentid;
    }

    public void setDepartmentid(String departmentid) {
        this.departmentid = departmentid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public Integer getWeighting() {
        return weighting;
    }

    public void setWeighting(Integer weighting) {
        this.weighting = weighting;
    }

    public String getPhotourl() {
        return photourl;
    }

    public void setPhotourl(String photourl) {
        this.photourl = photourl;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getDepartmentname() {
        return departmentname;
    }

    public void setDepartmentname(String departmentname) {
        this.departmentname = departmentname;
    }

    public String getSupperManager() {
        return supperManager;
    }

    public void setSupperManager(String supperManager) {
        this.supperManager = supperManager;
    }

    public String getDepartmentCode() {
        return departmentCode;
    }

    public void setDepartmentCode(String departmentCode) {
        this.departmentCode = departmentCode;
    }

    @Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((account == null) ? 0 : account.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		StaffBean other = (StaffBean) obj;
		if (account == null) {
			if (other.account != null)
				return false;
		} else if (!account.equals(other.account))
			return false;
		return true;
	}
    
}
